<template>
  <span>
    <el-button size="mini" type="primary" style="float:right;margin-bottom:5px;margin-left:0px;" icon="el-icon-upload2" round @click="upload">导入Excel</el-button>
    <selectBuyer ref="selectBuyer" :parent="parent" />
  </span>
</template>
<script>
import selectBuyer from '@/views/active-item/select-buyer'
export default {
  components: { selectBuyer },
  props: {
    parent: {
      type: Object,
      default: null
    }
  },
  data() {
    return {
    }
  },
  methods: {
    // 导入Excel
    upload() {
      const selectBuyer = this.$refs.selectBuyer
      selectBuyer.dialog = true
    }
  }
}
</script>
